<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" href="../public/style/css/ch-ui.admin.css">
	<link rel="stylesheet" href="../public/style/font/css/font-awesome.min.css">
</head>
<body>
    <!--面包屑导航 开始-->
    <div class="crumb_warp">

        <i class="fa fa-home"></i> <a href="../controllers/IndexController.php">首页</a> &raquo; 新增文章
    </div>
    <!--面包屑导航 结束-->

	<!--结果集标题与导航组件 开始-->
	<div class="result_wrap">
        <div class="result_title">
            <h3>快捷操作</h3>
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="../controllers/IndexController.php"><i class="fa fa-refresh"></i>返回首页</a>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->

    <div class="result_wrap">
        <form action="../controllers/CreateController.php" method="post">
            <table class="add_tab">
                <tbody>
                    <tr>
                        <th style="width: 10%;">文章标题:</th>
                        <td>
                            <input id="two" type="text" name="title">
                        </td>
                    </tr>
                    <tr>
                        <th>文章标签：</th>
                        <td>
                            <input id="three" type="text" class="lg" name="tags">
                        </td>
                    </tr>
                    <tr>
                        <th>文章内容：</th>
                        <td>
                            <textarea id="one" name="content"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input onclick="return check()" type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>

</body>
</html>
<script style="text/javascript" src="../ueditor/ueditor.config.js"></script>
<script style="text/javascript" src="../ueditor/ueditor.all.min.js"></script>
<script>
    UE.getEditor('one');
    function check(){
        one = document.getElementById('one').value;
        two = document.getElementById('two').value;
        three = document.getElementById('three').value;
        if(one !== '' && two !== '' && three !== ''){
            return true;
        }else{
            alert('标题,标签,内容都不能为空!!!');
            return false;
        }

    }
</script>